-- GENERATED SPELL FOR [Sunseeker Harvester] --


function spell0_19509(pUnit, Event) --@Polymorph,n/a--
pUnit:FullCastSpellOnTarget(34639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19509', 6500, 1)
end

function spell1_19509(pUnit, Event) --@Wilting Touch,n/a--
pUnit:FullCastSpellOnTarget(34640,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19509', 8307, 1)
end

function Sorts_19509(pUnit, Event)
local choix_sorts_19509 = math.random(0, 1)
if choix_sorts_19509 == 0 then
pUnit:RegisterEvent('spell0_19509', 1, 1)
end
if choix_sorts_19509 == 1 then
pUnit:RegisterEvent('spell1_19509', 1, 1)
end
end

function mob19509_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19509', math.random(1500, 3000), 1)
end

function mob19509_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19509_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19509_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19509, 1, 'mob19509_Action')
RegisterUnitEvent(19509, 2, 'mob19509_Leave')
RegisterUnitEvent(19509, 3, 'mob19509_Kill')
RegisterUnitEvent(19509, 4, 'mob19509_Die')
